<template>
    <div style="height: 100%;position: relative">
    <div class="search-hidden"></div>
        <div style="height: 100%">
        <iframe id="iframe1" width="100%" height="100%"
                src="https://www.google.com/search?ei=vAsiN9oxZeRJ9MstKFTwWW&q=%2222%22%20AND%20%2233%22%20AND%20%22111%22%20AND%20(%22company%20profile%22%20OR%20%22Company%20Overview%22%20OR%20%22Company%20Search%22)&oq=%2222%22%20AND%20%2233%22%20AND%20%22111%22%20AND%20(%22company%20profile%22%20OR%20%22Company%20Overview%22%20OR%20%22Company%20Search%22)&gs_l=E8mhSoFqGcfKIpGglS4AVaJ5JONOIcjm"></iframe>
        </div>
    </div>
</template>

<script>
export default {
  mounted () {
    window.onload = function () {
      let iframe = document.getElementById('iframe1')
      let iwindow = iframe.contentWindow
      console.log('window', iwindow)// 获取iframe的window对象
      setTimeout(function () {
        iframe.contentWindow.document.getElementById('form').innerHTML = ''
      }, 3000)
    }
  }
}
</script>

<style scoped>
.search-hidden{
    position: absolute;
    top: 1px;
    width: 100%;
    height: 50px;
    background-color: #f3f3f3;
}
</style>
